<template>
    <span class="title">
        <i class="icon"></i>
        <slot name="title"></slot>
        <slot name="number"></slot>
    </span>
</template>

<script>
export default {
  props: {
    hideNum: {
      type: Boolean,
      default: () => {
        return false;
      }
    }
  }
}
</script>


<style lang="scss" scoped>
@import "../../styles/base/_parameters";

@mixin title($size: 22px, $color: #28E787) {
  color: $color;
  font-size: $size;
}

.title {
  display: flex;
  align-items: center;
  position: relative;
  @include title;
  .icon {
    display: inline-block;
    width: 16px;
    height: 15px;
    background: url("../../../static/img/gq/icon1.png") left top no-repeat;
    background-size: 100% 100%;
  }
  & span:nth-of-type(1) {
    margin-left:7px;
    margin-right:20px;
  }
  & span:nth-of-type(2) {
    height: 25px;
    line-height: 30px;
    @include din(30px);
  }
}
</style>
